package com.vtest.quartz.mapper.needle;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.vtest.quartz.domain.TDEntity;
import com.vtest.quartz.domain.needle.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @program: Quartz
 * @author: tiger
 * @create: 2025-01-08 10:20
 * @Description : 针卡报表 mapper层
 */

@Repository
public interface NeedleMapper {

    public List<YOSNeedleEntity> findYOSNeedleInfoList();

    public List<BIDNeedleEntity> findBIDNeedleInfoList();

    public List<ANENeedleEntity> findANENeedleInfoList();
    public List<STHNeedleEntity> findSTHNeedleInfoList();

    //public List<Map<String,String>> isWorkRecentWeekByIDAndTime(@Param("idList") List<String> idList, @Param("time") String time);
    public List<String> isWorkRecentWeekByIDAndTime(@Param("idList") List<String> idList, @Param("time") String time);

    @DS("second")
    public List<Map<String, String>> findMESTestPCSRecentBYID(@Param("idList") List<String> idList, @Param("time") String time);

    List<Map<String, String>> getInComingLenByID(@Param("list") List<String> proberCardList);

    List<TDEntity> getTestRecordCard(@Param("idList") List<String> idList);
    List<Map<String, String>> getOriLenByID(@Param("idList") List<String> idList);

    List<Map<String, String>> getDDCount(@Param("idList") List<String> idList);

    void updateLocByID(@Param("item") LocEntity proberCardList);

    List<Map<String, String>> getIQCNote(@Param("list") List<String> proberCardList);
}
